package com.yami.shop.bean.enums;

/**
 * 设计稿状态枚举
 * @author AI Assistant
 */
public enum DesignStatusEnum {
    /**
     * 草稿
     */
    DRAFT(1, "草稿"),
    
    /**
     * 已完成
     */
    COMPLETED(2, "已完成"),
    
    /**
     * 已发布
     */
    PUBLISHED(3, "已发布");

    private final Integer value;
    private final String desc;

    DesignStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer value() {
        return value;
    }

    public String desc() {
        return desc;
    }

    public static DesignStatusEnum instance(Integer value) {
        for (DesignStatusEnum status : DesignStatusEnum.values()) {
            if (status.value.equals(value)) {
                return status;
            }
        }
        return null;
    }
}